// test.h file 
#ifndef ALIBESonar_h
	#define ALIBESonar_h
	#include <Arduino.h>
	
	#define ALIBESONAR_FRONT_PIN 2
	#define ALIBESONAR_REAR_PIN 3
	
	class ALIBESonar{
		public:
			ALIBESonar();
			long getFrontDistanceInIN();
			long getFrontDistanceInCM();
			long getRearDistanceInIN();
			long getRearDistanceInCM();
			
		private:
			long _getDistanceInIN(int _pin);
			long _getDistanceInCM(int _pin);
			long _getDuration(int _pin);
			long _microsecondsToInches(long _ms);
			long _microsecondsToCentimeters(long _ms);
		};
#endif

